﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace COFE.Core.UnitTest
{
    public class TestUserCreator : ITestUserCreator
    {
        public static TestUserCreator Instance = new TestUserCreator();

        public IUserProfile CreateUser(string name, params Tuple<string, string, string>[] registerVolume)
        {
            COFEShared.Register();
            
            var profile = UserProfile.Create(name, false);
            foreach (var pp in registerVolume)            
                profile.RegisterVolume(pp.Item1, pp.Item2, pp.Item3);            

            return profile;
        }
    }
}
